import request from '@/utils/request'

/**
 * 获取VIP商城列表
 * @returns
 */
export function getRebateGoodsList(params : Record<string, any>) {
	return request.get(`jiangsu_shop/list`, params)
}
/**
 * 获取商品详情
 */
export function getGoodsDetail(params: Record<string, any>) {
	return request.get(`jiangsu_shop/detail`, params)
}
/**
 * 订单创建计算
 */
export function orderCreateCalculate(params: Record<string, any>) {
	return request.get('jiangsu_shop/calculate', params)
}

/**
 * 订单创建
 */
export function orderCreate(params: Record<string, any>) {
	return request.post('jiangsu_shop/create', params)
}

/**
 * 获取我的VIP商城列表
 * @returns
 */
export function getMyEsGoodsList(params : Record<string, any>) {
	return request.get(`jiangsu_shop/my_list`, params)
}

/**
 * 提交VIP商品申请
 */
// export function myGoodsApply(params: Record<string, any>) {
// 	return request.post('jiangsu_shop/my_goods_apply', params, {showSuccessMessage: true})
// }

/**
 * 获得VIP商品详情
 */
export function myGoodsInfo(params: Record<string, any>) {
	return request.post('jiangsu_shop/my_goods_info', params)
}

/**
 * 改变VIP商品上下架状态
 */
export function myGoodsStatus(params: Record<string, any>) {
	return request.post('jiangsu_shop/my_goods_status', params)
}

/**
 * 改变我的订单
 */
export function myOrderlist(params: Record<string, any>) {
	return request.post('jiangsu_shop/my_order_list', params)
}

/**
 * 改变我的VIP产品订单
 */
export function myRebateOrderList(params: Record<string, any>) {
	return request.post('jiangsu_shop/my_rebate_order_list', params)
}

/**
 * 我的VIP产品发货
 */
export function myGoodsOrderFahuo(params: Record<string, any>) {
	return request.post('jiangsu_shop/my_goods_order_fahuo', params)
}

/**
 * 快递公司
 */
export function expressCompanyList(params: Record<string, any>) {
	return request.post('jiangsu_shop/express_company_list', params)
}

/**
 * 获取VIP和规则详情
 */
export function getRebateMemberGroup() {
	return request.get(`jiangsu_shop/member_group_info`)
}

/**
 * 获取VIP用户下属购买记录
 */
export function getMemberCommission(data : AnyObject) {
	return request.get(`member/account/commission`,data)
}